package com.taskcollection.compsite;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/8/7 0007.
 */
public class Compsites implements CompsiteInterface{
    List<CompsiteInterface> com = new ArrayList<CompsiteInterface>();
    int num;
    @Override
    public void op() {
        System.out.println("目录---"+num);
    }

    public List<CompsiteInterface> getCom() {
        return com;
    }

    public void add(CompsiteInterface c){
        com.add(c);
    }

    public Compsites(int num) {
        this.num = num;
    }
}
